package App.Model.Chat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class CrmChatGroupExt{
    //聊天组id、
    @Column(name = "recid")
    @Id
    private String groupid;

    //聊天组名称
    @Column(name = "recname")
    private String groupname;

    //项目id,任务id
    @Column(name = "objectid")
    private String objectid;

    //项目聊天，还是任务聊天 0:project,1:chat
    @Column(name = "chattype")
    private int chattype;

    @Column(name = "chatstageid")
    private int stageid;

    @Column(name = "prefixname")
    private String prefixname;

    @Column(name = "stageid")
    private int projectstageid;

    @Column(name = "grouptype")
    private int grouptype;

    @Column(name = "relatedid")
    private String relatedid;

    @Column(name = "taskbegintime")
    private  String  taskbegintime;

    @Column(name = "isactive")
    private  boolean  isactive;

    public String getGroupid() {
        return groupid;
    }

    public void setGroupid(String groupid) {
        this.groupid = groupid;
    }

    public String getGroupname() {
        return groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public String getObjectid() {
        return objectid;
    }

    public void setObjectid(String objectid) {
        this.objectid = objectid;
    }

    public int getChattype() {
        return chattype;
    }

    public void setChattype(int chattype) {
        this.chattype = chattype;
    }


    //阶段id
    public int getStageid() {
        return stageid;
    }

    public void setStageid(int stageid) {
        this.stageid = stageid;
    }

    public String getPrefixname() {
        return prefixname;
    }

    public void setPrefixname(String prefixname) {
        this.prefixname = prefixname;
    }


    public int getProjectstageid() {
        return projectstageid;
    }

    public void setProjectstageid(int projectstageid) {
        this.projectstageid = projectstageid;
    }

    public int getGrouptype() {
        return grouptype;
    }

    public void setGrouptype(int grouptype) {
        this.grouptype = grouptype;
    }

    public String getRelatedid() {
        return relatedid;
    }

    public void setRelatedid(String relatedid) {
        this.relatedid = relatedid;
    }

    public String getTaskbegintime() {
        return taskbegintime;
    }

    public void setTaskbegintime(String taskbegintime) {
        this.taskbegintime = taskbegintime;
    }

    public boolean getIsactive() {
        return isactive;
    }

    public void setIsactive(boolean isactive) {
        this.isactive = isactive;
    }

    //ext
    private  String  content;//消息内容
    private  long  msgtime;//时间戳
    private  int  relcount;//关联记录数量
    private  int msgseq; //消息序号

    public String getMsgcontent() {
        return msgcontent;
    }

    public void setMsgcontent(String msgcontent) {
        this.msgcontent = msgcontent;
    }

    private  String  msgcontent;//消息body

    public int getMsgseq() {
        return msgseq;
    }

    public void setMsgseq(int msgseq) {
        this.msgseq = msgseq;
    }

    public long getMsgtime() {
        return msgtime;
    }

    public void setMsgtime(long msgtime) {
        this.msgtime = msgtime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getRelcount() {
        return relcount;
    }

    public void setRelcount(int relcount) {
        this.relcount = relcount;
    }
}
